home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 04 - Disk and Technical Stuff (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 04 - Disk and Technical Stuff (19xx)(Topik Public Domain)(PD)[WB].adf / 6502Asm / make < prev    next >
Text File  |  1989-06-20  |  1KB  |  54 lines

  1. #  Define DEBUG to be zero if no debug code is desired
  2. #  Define it as non if you would like debug code in the source
  3.  
  4. .asm.obj:
  5.    foxy $*.asm DEBUG=0
  6.  
  7. WORKER = \
  8.    worker/reset.obj  worker/selftest.obj worker/init.obj worker/connect.obj \
  9.    worker/tools.obj worker/tools2.obj worker/MPSC.obj worker/irq.obj
  10.  
  11. LOGIC = \
  12.    main.obj initmem.obj emergency.obj \
  13.    ack.obj link.obj term.obj insert.obj resend.obj \
  14.    outstr.obj outhex.obj outinfo.obj \
  15.    ltserve.obj ttserve.obj lrserve.obj trserve.obj status.obj \
  16.    outbyte.obj history.obj search.obj supply.obj request.obj \
  17.    delete.obj power.obj
  18.  
  19. SIMULATOR = \
  20.    sim/init_simulator.obj sim/simulate.obj sim/simterm.obj \
  21.    sim/getstr.obj sim/putstr.obj sim/simwake.obj sim/sim_outbyte.obj
  22.  
  23. EXTRAS = chkack.obj worker/tools2.obj worker/msgs.obj
  24.  
  25. VECTORS = \
  26.    worker/vectors.obj
  27.  
  28. #with simulator
  29. #OBJECTS = $(LOGIC) $(SIMULATOR) 
  30. #DEPEND   = $(LOGIC) simu $(SIMULATOR)
  31.  
  32. #with the real thing
  33. OBJECTS = $(WORKER) $(LOGIC) $(VECTORS)
  34. DEPEND  = work $(WORKER) logic $(LOGIC) vector $(VECTORS)
  35.  
  36. all: test.6502
  37.    xfer test.6502
  38.  
  39. test.6502: $(DEPEND)
  40.    cd a:
  41.    lynx -o -c -Ftest.6502 $(OBJECTS)
  42.  
  43. work: 
  44.    cd a:worker
  45.  
  46. logic:
  47.    cd a:
  48.  
  49. vector:
  50.    cd a:worker
  51.  
  52. simu:
  53.    cd a:sim
  54.